package com.jeomo.mem.provider.web;

import com.jeomo.common.core.result.CommonResult;
import com.jeomo.mem.starter.service.IMemPointsSrcService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 会员积分来源基础数据
 *
 * @author:Jackpot
 * @create 2020-09-09 16:24
 * @description:
 */
@RestController
@RequestMapping("/member/points")
public class MemberPointsSrcController {

    @Autowired
    private IMemPointsSrcService memPointsSrcService;


    @ApiOperation("获取积分来源基础数据")
    @GetMapping("/src")
    public CommonResult getPointRuleById(){
        Map<Object, Object> cache = memPointsSrcService.queryCache();
        return CommonResult.success(cache);
    }


}
